//
//  YZDieOutModel.m
//  VET
//
//  Created by 刘文靖 on 2018/7/21.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZDieOutModel.h"

@implementation YZDieOutModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"dieOutId" : @"id",
             @"dieOutNO" :@"number",
             @"dieoutSex" : @"sex",
             @"dieoutState" : @"state",
             @"dieoutClass" : @"vetClass"
             };
}
@end

@implementation YZDieOutModelAPI

+ (RACSignal*)requestDieoutList:(NSInteger)index  number:(NSString *)number{
    YZDieOutModelAPI *api = [YZDieOutModelAPI api];
    api.action = @"/api/dieout";
    api.showLoadingStatus = NO;
    if (number) {
        [api addParam:@"number" value:number];
    }
    [api addParam:@"index" value:@(index)];
    [api addParam:@"size" value:@(10)];
    return [api getRequest];
}

/**新增死淘追踪*/
+ (RACSignal*)createDieoutTrack:(NSDictionary *)params{
    YZDieOutModelAPI *api = [YZDieOutModelAPI api];
    api.action = @"/api/dieout/track";
    api.showLoadingStatus = NO;
    [api addParams:params];
    return [api postRequest];
}

@end

